package com.csi.jf.crucible.ptservice.model;

import com.chinasofti.ro.bizframework.core.data.validation.IValidator;
import com.chinasofti.ro.bizframework.core.orm.entity.Model;

import java.sql.Timestamp;

/**
 * 
 * @author BizFoundation
 * @version 1.0
 * @since 1.0
 */
public class ServiceOrders extends Model implements IValidator {
	/**
	 * 
	 */
	private static final long serialVersionUID = 9102665338995168568L;
	
	
	// Fields    
	private Long id; 
	private Long taskId; 
	private Long codePackagesID; 
	private Long projectId; 
	private String projectName; 
	private Integer serviceID; 
	private String serviceName; 
	private Timestamp applyDate; 
	private Long professorID; 
	private String professorName; 
	private Timestamp exeBeginDate; 
	private Timestamp exeEndDate; 
	private Float servicePrice; 
	private String reviewId; 
	private String reviewName; 
	private String status; 
	private String creator; 
		
	//default constructor
    public ServiceOrders() {
    	super();
    }
    
    // Property accessors
	public Long getId() {
        return this.id;
    }
    
    public void setId(Long id) {
    	this.id = id;
    }
    
	public Long getTaskId() {
        return this.taskId;
    }
    
    public void setTaskId(Long taskId) {
    	this.firePropertyChange("taskId", this.taskId, taskId);
    	this.taskId = taskId;
    }
    
	public Long getCodePackagesID() {
        return this.codePackagesID;
    }
    
    public void setCodePackagesID(Long codePackagesID) {
    	this.firePropertyChange("codePackagesID", this.codePackagesID, codePackagesID);
    	this.codePackagesID = codePackagesID;
    }
    
	public Long getProjectId() {
        return this.projectId;
    }
    
    public void setProjectId(Long projectId) {
    	this.firePropertyChange("projectId", this.projectId, projectId);
    	this.projectId = projectId;
    }
    
	public String getProjectName() {
        return this.projectName;
    }
    
    public void setProjectName(String projectName) {
    	this.firePropertyChange("projectName", this.projectName, projectName);
    	this.projectName = projectName;
    }
    
	public Integer getServiceID() {
        return this.serviceID;
    }
    
    public void setServiceID(Integer serviceID) {
    	this.firePropertyChange("serviceID", this.serviceID, serviceID);
    	this.serviceID = serviceID;
    }
    
	public String getServiceName() {
        return this.serviceName;
    }
    
    public void setServiceName(String serviceName) {
    	this.firePropertyChange("serviceName", this.serviceName, serviceName);
    	this.serviceName = serviceName;
    }
    
	public Timestamp getApplyDate() {
        return this.applyDate;
    }
    
    public void setApplyDate(Timestamp applyDate) {
    	this.firePropertyChange("applyDate", this.applyDate, applyDate);
    	this.applyDate = applyDate;
    }
    
	public Long getProfessorID() {
        return this.professorID;
    }
    
    public void setProfessorID(Long professorID) {
    	this.firePropertyChange("professorID", this.professorID, professorID);
    	this.professorID = professorID;
    }
    
	public String getProfessorName() {
        return this.professorName;
    }
    
    public void setProfessorName(String professorName) {
    	this.firePropertyChange("professorName", this.professorName, professorName);
    	this.professorName = professorName;
    }
    
	public Timestamp getExeBeginDate() {
        return this.exeBeginDate;
    }
    
    public void setExeBeginDate(Timestamp exeBeginDate) {
    	this.firePropertyChange("exeBeginDate", this.exeBeginDate, exeBeginDate);
    	this.exeBeginDate = exeBeginDate;
    }
    
	public Timestamp getExeEndDate() {
        return this.exeEndDate;
    }
    
    public void setExeEndDate(Timestamp exeEndDate) {
    	this.firePropertyChange("exeEndDate", this.exeEndDate, exeEndDate);
    	this.exeEndDate = exeEndDate;
    }
    
	public Float getServicePrice() {
        return this.servicePrice;
    }
    
    public void setServicePrice(Float servicePrice) {
    	this.firePropertyChange("servicePrice", this.servicePrice, servicePrice);
    	this.servicePrice = servicePrice;
    }
    
	public String getReviewId() {
        return this.reviewId;
    }
    
    public void setReviewId(String reviewId) {
    	this.firePropertyChange("reviewId", this.reviewId, reviewId);
    	this.reviewId = reviewId;
    }
    
	public String getReviewName() {
        return this.reviewName;
    }
    
    public void setReviewName(String reviewName) {
    	this.firePropertyChange("reviewName", this.reviewName, reviewName);
    	this.reviewName = reviewName;
    }
    
	public String getStatus() {
        return this.status;
    }
    
    public void setStatus(String status) {
    	this.firePropertyChange("status", this.status, status);
    	this.status = status;
    }
    
	public String getCreator() {
        return this.creator;
    }
    
    public void setCreator(String creator) {
    	this.firePropertyChange("creator", this.creator, creator);
    	this.creator = creator;
    }
    
   	public boolean validate(Object arg0) {
		//ServiceOrders serviceOrders = (ServiceOrders)arg0;
		//Validation.required("serviceOrders.id",serviceOrders.getId());
		return true;
	}
}